package consts

const (
	JWT_REALM            = "jwt.realm"
	JWT_SIGNINGALGORITHM = "jwt.signingAlgorithm"
	JWT_KEY              = "jwt.key"
	JWT_TIMEOUT          = "jwt.timeout"
	JWT_MAXREFRESH       = "jwt.maxRefresh"
	JWT_IDENTITYKEY      = "jwt.identityKey"
	JWT_TOKENHEADNAME    = "jwt.tokenHeadName"
	JWT_MULTILOGIN       = "jwt.multiLogin"

	JWT_ERRFAILEDAUTHENTICATION  = "用户名或密码不正确"
	JWT_ErrLoginInactiveMsg      = "登录失败，用户已被禁用"
	JWT_ERRCONNECT_REDIS         = "Redis操作失败"
	JWT_ERR_ABNORMAL_ACCESS      = "非正常访问"
	JWT_TOKEN_REDISKEY           = "Token"
	JWT_TOKEN_BLACKLIST_REDISKEY = "TokenBlackList:"

	JWT_INFO_UUID          = "uuid"
	JWT_INFO_DEVICETYPE    = "deviceType"
	JWT_INFO_NONCE         = "nonce"
	JWT_INFO_IS_SUPERADMIN = "isSuperAdmin"
	JWT_INFO_USER          = "userInfo"

	CAPTCHA_OPEN      = "captcha.open"
	CAPTCHA_TIMEOUT   = "captcha.timeout"
	CAPTCHA_DIGITLEN  = "captcha.digitLen"
	CAPTCHA_STDWIDTH  = "captcha.stdWidth"
	CAPTCHA_STDHEITHT = "captcha.stdHeight"
	CAPTCHA_BLANK     = "验证码为空"
	CAPTCHA_INVALID   = "验证码不正确"

	// ALLOW_ANONYMOUS .. 匿名
	ALLOW_ANONYMOUS = "x-anonymous"

	Role_Api_Prefix    = "role-api "
	Role_Menu_Prefix   = "role-menu "
	Role_Button_Prefix = "role-button "
)
